<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title></title>
    </head>
    <body>
        <script type="text/javascript">
            var arr = new Array(3);//声明一个数组arr
            arr[0] = "George";
            arr[1] = "Jhon";
            arr[2] = "Thomas";
            var arr1 = arr.join("————————");//将更改后的数组赋值给一个新变量后，传回新变量
            console.log(arr1);
            
</script>
    </body>
</html>